package openfidias.maker.format

import org.apache.commons.lang.StringUtils as sutils

/**
 *
 * @author atila
 */
final class Formatter {

   static final String tab = "   "
   static final String tab2 = tab.multiply(2)
   static final String tab3 = tab.multiply(3)
   static final String ret = "\n"
   static final String ret2 = ret.multiply(2)
   static final String rt = ret.plus(tab)
   static final String rt2 = ret.plus(tab2)
   static final String rt3 = ret.plus(tab3)
   static final String endClass = "${ret}}${ret}"

   /**
    * Uncapitalize the String
    */
   static String uncap(String value) {
//      if (value ==~ /[A-Z]\w*/) {
//         return value.substring(0,1).toLowerCase() + value.substring(1)
//      } else {
//         return value
//      }
      if (value != null) {
         sutils.uncapitalize(value)
      } else {
         ""
      }
   }
}

